<?php
/*
 * [JINYUN!] (C)2001-2099 Jinyunweb.com
 * This is NOT a freeware, use is subject to license terms
 * $Id: 2017-12-13 03:39:35 apple $
 电商客插件菜单
*/
defined('BY_JYA') or exit('error');
$menus=array(
	array('title'=>'门店概况','fa'=>'icon-dianpu','url'=>'jy_weishop/store.s_item.s_count/','child'=>array(
		array('title'=>'门店概况','child'=>array(
			array('url'=>'jy_weishop/store.s_item.s_count/','title'=>'门店概况'),
		)),
		array('title'=>'门店设置','child'=>array(
			array('url'=>'jy_weishop/store.list/edit/','title'=>'门店设置'),
		)),
		array('title'=>'打印机管理','child'=>array(
			array('url'=>'jy_weishop/store.s_item.s_printer/','title'=>'打印机管理'),
		)),
		array('title'=>'员工管理','child'=>array(
			array('url'=>'jy_weishop/store.s_item.s_saler/','title'=>'员工列表'),
		)),
	)),
	array('title'=>'商品管理','fa'=>'icon-cart1','url'=>'jy_weishop/store.s_item.s_totalset/','child'=>array(
		array('title'=>'商品管理','child'=>array(
				array('url'=>'jy_weishop/store.s_item.s_totalset/','title'=>'商品分配'),
		)),
	)),
	array('title'=>'订单管理','fa'=>'icon-form','url'=>'jy_weishop/store.s_item.s_order/list/status=0','child'=>array(
		array('title'=>'订单管理','child'=>array(
			array('url'=>'jy_weishop/store.s_item.s_order/list/status=0','title'=>'待付款'),
			array('url'=>'jy_weishop/store.s_item.s_order/list/status=1','title'=>'待发货'),
			array('url'=>'jy_weishop/store.s_item.s_order/list/status=2','title'=>'待收货'),
			array('url'=>'jy_weishop/store.s_item.s_order/list/status=3','title'=>'已完成'),
			array('url'=>'jy_weishop/store.s_item.s_order/list/status=4','title'=>'已关闭'),
			array('url'=>'jy_weishop/store.s_item.s_order/list/status=5','title'=>'退款维权'),
			array('url'=>'jy_weishop/store.s_item.s_order/list/status=6','title'=>'已维权'),
		)),
		array('title'=>'订单类型','child'=>array(
			array('url'=>'jy_weishop/store.s_item.s_order/list/sendtype=0','title'=>'快递配送'),
			array('url'=>'jy_weishop/store.s_item.s_order/list/buytype=1','title'=>'多商户订单'),
			array('url'=>'jy_weishop/store.s_item.s_order/list/buytype=2','title'=>'货到付款'),
			array('url'=>'jy_weishop/store.s_item.s_order/list/sendtype=2','title'=>'自提/店内订单'),
			array('url'=>'jy_weishop/store.s_item.s_order/list/buytype=3','title'=>'加星订单'),
		)),
	)),
	array('title'=>'顾客管理','fa'=>'icon-paihao0','url'=>'jy_weishop/store.s_item.s_member/','child'=>array(
		array('title'=>'顾客管理','child'=>array(
			array('url'=>'jy_weishop/store.s_item.s_member/','title'=>'顾客列表'),
		)),
	)),
	array('title'=>'收银台','fa'=>'icon-dixiaofei','url'=>'store.s_item.s_cashier/','child'=>array(
		array('title'=>'收银台','child'=>array(
			array('url'=>'jy_weishop/store.s_item.s_cashier/','title'=>'收银台管理'),
		)),
	)),
	array('title'=>'店内管理','fa'=>'icon-dianpu','url'=>'jy_weishop/store.s_item.s_order_in/list/status=0','child'=>array(
		array('title'=>'订单管理','child'=>array(
			array('url'=>'jy_weishop/store.s_item.s_order_in/list/status=0','title'=>'待付款'),
			array('url'=>'jy_weishop/store.s_item.s_order_in/list/status=1','title'=>'待发货'),
			array('url'=>'jy_weishop/store.s_item.s_order_in/list/status=2','title'=>'待收货'),
			array('url'=>'jy_weishop/store.s_item.s_order_in/list/status=3','title'=>'已完成'),
		)),
		array('title'=>'桌台管理','child'=>array(
			array('url'=>'jy_weishop/store.s_item.s_table_group/','title'=>'桌台类型'),
			array('url'=>'jy_weishop/store.s_item.s_table/','title'=>'桌台列表'),
		)),
		array('title'=>'排号管理','child'=>array(
			array('url'=>'jy_weishop/store.s_item.s_queue/user/','title'=>'客人队列'),
			array('url'=>'jy_weishop/store.s_item.s_queue/queue/','title'=>'队列列表'),
			array('url'=>'jy_weishop/store.s_item.s_queue/setting/','title'=>'排号设置'),
		)),
	)),
	array('title'=>'代客下单','fa'=>'icon-wo1','url'=>'jy_weishop/store.s_item.s_posgoods//sendtype=2','child'=>array(
		array('title'=>'店内下单','child'=>array(
			array('url'=>'jy_weishop/store.s_item.s_posgoods//sendtype=2','title'=>'自提/店内下单'),
		)),
		array('title'=>'配送下单','child'=>array(
			array('url'=>'jy_weishop/store.s_item.s_posgoods//sendtype=1','title'=>'配送下单'),
		)),
	)),
	array('title'=>'切换门店','fa'=>'icon-qiehuan','url'=>'jy_weishop/store.list/','child'=>array(
	)),
);
$install = check_permission('jy_cashier');
if(!$install){
	unset($menus[3]);
}
return $menus;